import { _decorator, Component } from 'cc'
import EventCenter from '../../Runtime/EventCenter'
import { EVENT_ENUM } from '../../Enum'
const { ccclass, property } = _decorator

@ccclass('ControllerManager')
export class ControllerManager extends Component {
  handleNextLevel() {
    EventCenter.emit(EVENT_ENUM.NEXT_LEVEL)
  }
  handleControl(event: Event, direction: string) {
    EventCenter.emit(EVENT_ENUM.PLAYER_CTRL, direction)
  }
}
